<?php

class Core_Controller_Admincp_Menu_Index extends Nuo_Controller_Admincp
{
	function execute($request)
	{

		Nuo::setVar('breadcrum', array(
			'title' => 'Browse Menu',
			'links' => array(
				'admincp' => 'AdminCP',
				'admincp/appearance' => 'Appearance',
			),
			'toolbar' => 'admincp/core/menu',
		));

		$items = Nuo::getTable('core/menu') -> fetchAll();

		return  $this -> render(array('items' => $items));
	}

}
